package com.xbai.springcloud.service;

import com.xbai.springcloud.entity.CommonResult;
import com.xbai.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @author xbai
 * @Date 2021/6/13
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回 --- PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
